/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uni.lpoo.test;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
 *
 * @author DELL
 */
public class fecha {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
   

	   System.out.println (new Date());
	   
	   Calendar c = new GregorianCalendar(); 
	   
	   String dia, mes, annio;
	   dia = Integer.toString(c.get(Calendar.DATE));
	   mes = Integer.toString(c.get(Calendar.MONTH)+1);
	   annio = Integer.toString(c.get(Calendar.YEAR));
	   
	   System.out.println (dia + "/" + mes +"/" + annio);	
	}

}
    

